<!-- 远程文本文件获取 前端获取显示 -->
{{- $url := .Get "url" -}}
{{- $md5Hash := md5 $url -}}
{{- $md5Short := substr $md5Hash 0 8 -}}

<div id="{{- $md5Short -}}">
</div>
<script>
    fetch("{{ $url }}")
        .then(response => response.text())
        .then(text => {
            document.getElementById("{{- $md5Short -}}").innerHTML = text.replace(/\n/g,"<br>");
        });
</script>